/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ag;

/**
 *
 * @author T
 */
public class cromosoma {
    
    int[]alelos;
    int fitness;
    double proporcion_probabilidad;    
    private boolean solucion = false;
    private int tamSolucion = 0;
    
    public cromosoma (){
    
    }
    
    public cromosoma(int[] als){
        alelos= als;
    }
    
    public void setAlelos(int[] a){
        alelos=a;
    }
    
    public int[] getAlelos(){
        return alelos;
    }
    
    public void setFitness(int f){
        fitness=f;
    }
    
    public int getFitness(){
        return fitness;
    }
    
    public void setProporcionProbabilidad(double pp){
        proporcion_probabilidad=pp;
    }
    
    public double getProporcionProbabilidad(){
        return proporcion_probabilidad;
    }

    /**
     * @return the solucion
     */
    public boolean isSolucion() {
        return solucion;
    }

    /**
     * @param solucion the solucion to set
     */
    public void setSolucion(boolean solucion) {
        this.solucion = solucion;
    }

    /**
     * @return the tamSolucion
     */
    public int getTamSolucion() {
        return tamSolucion;
    }

    /**
     * @param tamSolucion the tamSolucion to set
     */
    public void setTamSolucion(int tamSolucion) {
        this.tamSolucion = tamSolucion;
    }
    
    
}
